CC = g++
CFLAGS = -std=c++11

all: client.exe server.exe
	
client.exe:client_main.cpp client.o
	$(CC) $(CFLAGS) client_main.cpp client.o -o client.exe

server.exe:server_main.cpp server.o
	$(CC) $(CFLAGS) server_main.cpp server.o -o server.exe

Server.o: server.cpp server.h common.h
	$(CC) $(CFLAGS) -c server.cpp

Client.o: client.cpp client.h common.h
	$(CC) $(CFLAGS) -c client.cpp

clean:
	rm -f *.o client.exe server.exe
